<?php 
$this->template->add_admin_js_lib(admin_theme_url()."vendor/notify/notify.min.js");
$this->template->add_admin_js_lib(admin_theme_url()."vendor/notify/styles/bootstrap/notify-bootstrap.js");
$this->template->add_admin_js_lib(admin_theme_url()."vendor/inputmask/jquery.inputmask.bundle.min.js");
$this->template->add_admin_js_lib('vendor/moment/min/moment-with-langs.min.js');
$this->template->add_admin_js_lib('vendor/datetimepicker/js/bootstrap-datetimepicker.min.js');  

$this->template->add_admin_js_lib(admin_theme_url().'vendor/bxslider/plugins/jquery.fitvids.js');
$this->template->add_admin_js_lib(admin_theme_url().'vendor/bxslider/plugins/jquery.easing.1.3.js');
$this->template->add_admin_js_lib(admin_theme_url().'vendor/bxslider/jquery.bxslider.min.js');
$this->template->add_admin_css_lib(admin_theme_url().'vendor/bxslider/jquery.bxslider.css'); 
?>
<?php echo $this->atheme->form_open('', array('label'=>''.iif(!empty($edit->post_title), ''.@$edit->post_title, ''), 'data-parsley-validate'=>'','novalidate'=>'')); ?>
<?php echo $this->atheme->popup_add_posts(); ?>

<div class="row">
	<div class="col-sm-8">

		<fieldset>
			<div class="form-group">
                  <label class="col-sm-2 control-label">Chuyên mục chính</label>
                  <div class="col-sm-10">
                  <select name="edit[cat_id]" id="input-type" class=" select2" style="min-width: 400px;" data-parsley-min="1">
                     <option value="0">Tất cả</option>
                     <?php if (isset($menu_tree) && $menu_tree) foreach ($menu_tree as $menu) print_menu_select($menu, @$edit->cat_id); ?>
                 </select>
                 </div>
         </div>
		</fieldset>
		<?php echo $this->atheme->input('Tiêu đề', 'edit[post_title]', set_value('edit[post_title]', @$edit->post_title), array('help'=>'','attr'=>'required="required"')); ?>
		<?php 
		$link = 'Link của bài viết.';
		if($edit_id >0)
		{
			$link = post_url($edit);
			$link = '<a href="'.$link.'" target="_blank" class="slug-demo">'.$link.'</a><br>';
		}
		$link.= '<a href="javascript:void(0);" id="create_slug">Tạo tự động</a>';
		echo $this->atheme->input('Slug', 'edit[post_slug]', set_value('edit[post_slug]', @$edit->post_slug), array('help'=>$link, 'attr'=>'required="required"')); ?>
		<?php echo $this->atheme->textarea('Tóm tắt', 'edit[post_excerpt]', set_value('edit[post_excerpt]', @$edit->post_excerpt), array('rows'=>5, 'help'=>'','attr'=>'required="required"')); ?>
		
		<fieldset>
			<div class="form-group">
				<label class="col-sm-2 control-label">Nội dung</label>
				<div class="col-sm-10 text-center">
					<label class="radio-inline c-radio" data-toogle="posttype" data-id="type_text"><input id="inlineradio2" type="radio" name="edit[post_content_type]" value="1" <?php echo (!isset($edit->post_content_type) || @$edit->post_content_type == 1)?"checked":""; ?>><span class="fa fa-circle"></span>Text</label>

					<label class="radio-inline c-radio" data-toogle="posttype" data-id="type_image"><input id="inlineradio2" type="radio" name="edit[post_content_type]" value="2" <?php echo (@$edit->post_content_type == 2)?"checked":""; ?>><span class="fa fa-circle"></span>Image</label>

					<label class="radio-inline c-radio" data-toogle="posttype" data-id="type_audio"><input id="inlineradio2" type="radio" name="edit[post_content_type]" value="3" <?php echo (@$edit->post_content_type == 3)?"checked":""; ?>><span class="fa fa-circle"></span>Audio</label>

					<label class="radio-inline c-radio" data-toogle="posttype" data-id="type_video"><input id="inlineradio2" type="radio" name="edit[post_content_type]" value="4" <?php echo (@$edit->post_content_type == 4)?"checked":""; ?>><span class="fa fa-circle"></span>Video</label>
				</div>
				<div class="col-sm-12 post_content margin-top20">
					<div id="type_text" class="<?php echo (!isset($edit->post_content_type) || @$edit->post_content_type == 1)?"in active":"hidden"; ?>">
						<?php echo $this->atheme->editor(false, 'post_content', @$edit->post_content, 300); ?>
					</div>
					<div id="type_image" class="text-center <?php echo (@$edit->post_content_type == 2)?"in active":"hidden"; ?>">
						<a class="btn btn-default fancybox fancybox.iframe" href="<?php echo $this->url_index ?>/popup_post_images/<?php echo $edit_id ?>" data-fancybox-width="100%" data-fancybox-height="100%">Quản lý hình ảnh</a>
					</div>
					<div id="type_audio" class="text-center <?php echo (@$edit->post_content_type == 3)?"in active":"hidden"; ?>">
						
                      	<div class="form-group margin-bottom20">
                      		<div class="col-md-8 col-md-offset-2 margin-bottom20">
                      			<input type="hidden" id="import_audio_id" value="">
	                      		<input type="text" id="import_audio_src" class="form-control" placeholder="http://www.w3schools.com/html/horse.mp3" />
	                      		<textarea id="import_audio_caption" class="form-control" placeholder="Mô tả ngắn"></textarea>
	                      		<button type="button" id="import_audio" class="btn btn-default">Import</button>
	                      		<button type="button" id="reset_audio" class="btn btn-default">Reset</button>
                      		</div>
                  		</div>
                  		<table class="table table-striped table-bordered table-hover table-responsive" id="list_audio">
              			<tbody>
              				<?php
              				foreach($edit->post_content_audio as $k=>$audio) {
              				?>
              				<tr id="import_audio_row_<?php echo $k; ?>" data-id="<?php echo $k; ?>">
              					<td>
              					<audio controls>
								  <source src="<?php echo $audio['file'] ?>" type="audio/mpeg">
								  <input type="hidden" name="audio_src[]" value="<?php echo $audio['file'] ?>">
								Your browser does not support the audio element.
								</audio>
              					</td>
              					<td><?php echo $audio['caption'] ?>
								  <input type="hidden" name="audio_caption[]" value="<?php echo $audio['caption'] ?>">
              					</td>
              					<td>
              						<button class="audio_edit" type="button"><i class="fa fa-pencil-square-o"></i></button>
              						<button class="audio_remove" type="button"><i class="fa fa-trash-o"></i></button>
          						</td>
              				</tr>
              				<?php } ?>
              			</tbody>
                  		</table>
					</div>
					<div id="type_video" class="text-center <?php echo (@$edit->post_content_type == 4)?"in active":"hidden"; ?>">
                      	<div class="form-group margin-bottom20">
                      		<div class="col-md-8 col-md-offset-2 margin-bottom20">
                      			<input type="hidden" id="import_video_id" value="">
	                      		<input type="text" id="import_video_src" class="form-control" placeholder="http://www.w3schools.com/html/movie.mp4" />
	                      		<textarea id="import_video_caption" class="form-control" placeholder="Mô tả ngắn"></textarea>
	                      		<button type="button" id="import_video" class="btn btn-default">Import</button>
	                      		<button type="button" id="reset_video" class="btn btn-default">Reset</button>
                      		</div>
                  		</div>
                  		<div class="post-content-video-container">
                  			<ul class="bxslider">
                  			<?php
              				foreach($edit->post_content_video as $k=>$video) {
              				?>
                  				<li id="import_video_row_<?php echo $k; ?>" data-id="<?php echo $k; ?>">
                  					<div class="slide">
	                  					<video width="350" height="240" controls="" preload="auto">
									  		<source src="<?php echo $video['file'] ?>" type="video/mp4" />
								  			<input type="hidden" name="video_src[]" value="<?php echo $video['file'] ?>">
											Your browser does not support the video tag.
										</video>
										<p></p>
										<button class="video_edit" type="button"><i class="fa fa-pencil-square-o"></i></button>
              							<button class="video_remove" type="button"><i class="fa fa-trash-o"></i></button>
										<p></p>
										<div>
										<span><?php echo $video['caption'] ?></span>
										<input type="hidden" name="video_caption[]" value="<?php echo $video['caption'] ?>">
										</div>
                  					</div>
                  				</li>
              				<?php } ?>
                  			</ul>
                  		</div>
              		</div>
			   	</div>
			</div>
		</fieldset>
	
		<?php if($edit_id >0) { ?>
		<fieldset>
			<div class="form-group">
			   	<label class="col-sm-2 control-label">Tin liên quan</label>
			   	<div class="col-sm-10">
			   		<ul id="_cms_post_related_content">
			   		<?php if(isset($post_metas['_cms_post_related_content'])) foreach($post_metas['_cms_post_related_content'] as $post): ?>
			   			<li><?php echo $post->post_title; ?></li>
		   			<?php endforeach; ?>
			   		</ul>
					<a class="btn btn-default fancybox fancybox.ajax" href="<?php echo $this->url_index ?>/ajax_popup_posts/<?php echo $edit_id ?>/_cms_post_related_content">Chọn tin liên quan</a>
			   	</div>
			</div>
		</fieldset>

		<fieldset>
			<div class="form-group">
			   	<label class="col-sm-2 control-label">Tin đọc nhiều</label>
			   	<div class="col-sm-10">
			   		<ul id="_cms_post_most_read">
			   		<?php if(isset($post_metas['_cms_post_most_read'])) foreach($post_metas['_cms_post_most_read'] as $post): ?>
			   			<li><?php echo $post->post_title; ?></li>
		   			<?php endforeach; ?>
			   		</ul>
					<a class="btn btn-default fancybox fancybox.ajax" href="<?php echo $this->url_index ?>/ajax_popup_posts/<?php echo $edit_id ?>/_cms_post_most_read">Chọn tin đọc nhiều</a>
			   	</div>
			</div>
		</fieldset>

		<fieldset>
			<div class="form-group">
			   	<label class="col-sm-2 control-label">Tin theo dòng sự kiện</label>
			   	<div class="col-sm-10">
			   		<ul id="_cms_post_event_flow">
			   		<?php if(isset($post_metas['_cms_post_event_flow'])) foreach($post_metas['_cms_post_event_flow'] as $post): ?>
			   			<li><?php echo @$post->post_title; ?></li>
		   			<?php endforeach; ?>
			   		</ul>
					<a class="btn btn-default fancybox fancybox.ajax" href="<?php echo $this->url_index ?>/ajax_popup_posts/<?php echo $edit_id ?>/_cms_post_event_flow">Chọn tin theo dòng sự kiện</a>
			   	</div>
			</div>
		</fieldset>
		<fieldset>
			<div class="form-group">
                  <label class="col-sm-2 control-label">Sự kiện</label>
                  <div class="col-sm-10">
                  <select name="term_event" id="input-type" class=" select2" style="min-width: 400px;">
                     <option value="0">Tất cả</option>
                     <?php if (isset($menu_events) && $menu_events) foreach ($menu_events as $menu_event) print_menu_select($menu_event, @$term_event_id); ?>
                 </select>
                 </div>
         </div>
		</fieldset>
		<?php echo $this->atheme->ajax_upload('post_thumb', 'Ảnh dại diện', 'post_thumb', 'span6 ', image(@$edit->post_thumb), 'text',80,80, 'allowfile="jpg,png,gif" ','Hình đại diện'); ?>
		<?php } 
		else
		{
			?>
			<fieldset>
			<div class="form-group">
			   	<label class="col-sm-2 control-label">Tin liên quan, tin đọc nhiều, Tin theo dòng sự kiện, ảnh thumb</label>
			   	<div class="col-sm-10">
			   	 	Bạn phải lưu bài viết mới được thêm thông tin.
			   	</div>
			</div>
		</fieldset>
			<?php
		}
		?>

	</div>

	<div class="col-sm-4">
		<div class="well well-sm">
			<div class="row-fluid">
				<div class="form-group post_type text-center">
					<button type="button" class="btn btn-labeled btn-default" title="Cho phép bình luận">
						<input type="checkbox" name="metas[_cms_post_allow][comment]" value="1" <?php echo iif(@$post_metas['_cms_post_allow']['comment']==1,"checked") ?> />
		               	<span class="btn-label btn-label-right"><i class="fa fa-comments text-green"></i>
		               	</span>
		            </button>
					<button type="button" class="btn btn-labeled btn-default" title="Tin có video">
						<input type="checkbox" name="metas[_cms_post_allow][video]" value="1" <?php echo iif(@$post_metas['_cms_post_allow']['video']==1,"checked") ?>>
		               	<span class="btn-label btn-label-right"><i class="fa fa-film text-blue"></i>
		               	</span>
		            </button>
					<button type="button" class="btn btn-labeled btn-default" title="Tin có âm thanh">
						<input type="checkbox" name="metas[_cms_post_allow][audio]" value="1" <?php echo iif(@$post_metas['_cms_post_allow']['audio']==1,"checked") ?>>
		               	<span class="btn-label btn-label-right"><i class="fa fa-volume-up"></i>
		               	</span>
		            </button>
					<button type="button" class="btn btn-labeled btn-default" title="Tin có hình ảnh">
						<input type="checkbox" name="metas[_cms_post_allow][image]" value="1" <?php echo iif(@$post_metas['_cms_post_allow']['image']==1,"checked") ?>>
		               	<span class="btn-label btn-label-right"><i class="fa fa-image text-lightcoral"></i> 
		               	</span>
		            </button>
	            </div>
			</div>
			<div class="row-fluid">
				<div class="form-group">
					<label for="_post_level">Cấp độ tin</label>
					<?php 
						$options = array(
							0 => 'Bình thường',
							1 => 'Tiêu điểm',
							2 => 'Tin chính',
							3 => 'Nỗi bật'
						);
						echo form_dropdown('metas[_cms_post_level]', $options, set_value('metas[_cms_post_level]', @$post_metas['_cms_post_level']), 'id="_post_level" class="select2" style=" min-width: 150px;"');
					?>
				</div>
			</div>

			<div class="row-fluid">
				<div class="form-group">
				   	<label for="auto-checkboxes">Chuyên mục</label>
					<?php
					echo $this->atheme->list_cat_cb('terms[]', $menu_tree, $terms); ?>
				</div>
			</div>
			<div class="row-fluid">
				<div class="form-group">
					<label for="_post_type">Loại tin</label>
					<?php 
						$options = array(
							0 => 'Tin chưa phân loại',
							1 => 'Tin sản xuất',
							2 => 'Tin dịch',
							3 => 'Tin chưa tổng hợp',
							4 => 'Tin biên tập'
						);
						echo form_dropdown('edit[post_type]', $options, set_value('edit[post_type]', @$edit->post_type), 'id="_post_type" class="select2" style="min-width: 150px;" ');
					?>
				</div>
			</div>
			<div class="row-fluid">
				<div class="form-group">
					<label for="_post_sources">Nguồn tin</label>
					<?php 
					$options = array(
						'name' => 'metas[_cms_post_sources]',
						'id' => '_cms_post_sources',
						'value' => set_value('metas[_cms_post_sources]', @$post_metas['_cms_post_sources']),
						'class' => 'form-control',
						'placeholder' => 'Nguồn tin'
					);
					echo form_input($options);
					?>
				</div>
			</div>

			<div class="row-fluid">
				<div class="form-group">
					<label for="_post_author">Tác giả</label>
					<?php 
					$options = array(
						'name' => 'metas[_cms_post_author]',
						'id' => '_cms_post_author',
						'value' => set_value('metas[_cms_post_author]', @$post_metas['_cms_post_author']),
						'class' => 'form-control',
						'placeholder' => 'Tác giả'
					);
					echo form_input($options);
					?>
				</div>
			</div>

			<div class="row-fluid ">
				<div class="form-group">
					<label for="_post_show_type">Kiểu hiển thị</label>
					<?php 
						$options = array(
							0 => 'Bình thường',
							1 => 'Tin ảnh',
							2 => 'Inforgraphic',
							3 => 'Video Clip'
						);
						echo form_dropdown('metas[_cms_post_show_type]', $options, set_value('metas[_cms_post_show_type]', @$post_metas['_cms_post_show_type']), 'id="_post_show_type" class="select2" style="min-width: 150px;"');
					?>
				</div>
			</div>

			<div class="row-fluid">
				<div class="form-group">
					<label for="_post_royalties">Nhuận bút</label>
					<div class="input-group">
						<?php 
						$options = array(
							'name' => 'metas[_cms_post_royalties]',
							'id' => '_cms_post_royalties',
							'value' => set_value('metas[_cms_post_royalties]', @$post_metas['_cms_post_royalties']),
							'class' => 'form-control',
							'placeholder' => 'Nhuận bút'
						);
						echo form_input($options);
						?>
						<div class="input-group-addon">vnđ</div>
					</div>
				</div>
			</div>

			<div class="row-fluid">
				<div class="form-group">
				<label for="post_time_start">Thời gian chạy</label>
	          		<div class="collapse in" id="post_time_start">
	          			<div class="datetimepicker input-group date mb-lg" >
					  		<?php 
					  		$options = array(
					  			'class' => 'form-control',
					  			'name' => 'post_time_start',
					  			'value' => (@$edit->post_time_start <=  time())?date('m/d/Y H:i', time()):date('m/d/Y H:i', @$edit->post_time_start)
				  			);
					  		echo form_input($options); 
					  		?>
						 	<span class="input-group-addon">
								<span class="fa fa-calendar"></span>
						 	</span>
					  	</div>
	          		</div>
				</div>
			</div>

			<div class="row-fluid">
				<div class="form-group">
					<a class="btn btn-default" data-toggle="collapse" href="#post_sender_info" aria-expanded="false" aria-controls="post_sender_info"><i class="fa fa-chevron-down"></i> Thông tin người gửi</a>
				</div>
			</div>
	  		<div class="collapse" id="post_sender_info">
				<div class="row-fluid">
					<div class="form-group">
						<label for="_post_sender_name">Tên</label>
						<?php 
						$options = array(
							'name' => 'metas[_cms_post_sender_name]',
							'id' => '_cms_post_sender_name',
							'value' => set_value('metas[_cms_post_sender_name]', @$post_metas['_cms_post_sender_name']),
							'class' => 'form-control',
							'placeholder' => 'Tên người gửi'
						);
						echo form_input($options);
						?>
					</div>
				</div>
				<div class="row-fluid">
					<div class="form-group">
						<label for="_post_sender_email">Email</label>
						<?php 
						$options = array(
							'name' => 'metas[_cms_post_sender_email]',
							'id' => '_cms_post_sender_email',
							'value' => set_value('metas[_cms_post_sender_email]', @$post_metas['_cms_post_sender_email']),
							'class' => 'form-control',
							'placeholder' => 'Email người gửi'
						);
						echo form_input($options);
						?>
					</div>
				</div>
			</div>

			<div class="row-fluid">
				<div class="form-group">
					<label for="_post_notes">Ghi chú</label>				
					<?php 
					$options = array(
						'name' => 'metas[_cms_post_notes]',
						'id' => '_cms_post_notes',
						'value' => set_value('metas[_cms_post_notes]', @$post_metas['_cms_post_notes']),
						'class' => 'form-control',
						'placeholder' => 'Ghi chú',
						'rows' => 2
					);
					echo form_textarea($options);
					?>
				</div>
			</div>
		</div>
	</div>
</div>
<?php //$this->load->view('admin/posts/edit_seo') ;?>
<?php $this->load->view('admin/posts/edit_footer') ;?>

<?php echo $this->atheme->form_close(); ?>

<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
		$('#create_slug').click(function(){
			var title = $("#boot_edit_post_title").val();
			$.ajax({
	            type: "POST",
	            url: "<?php echo $this->url_index; ?>/ajax_create_slug",
	            data: {title: title, post_id: <?php echo $edit_id; ?>},
	            async: false,
	            success: function(res) {
	                $('#boot_edit_post_slug').val(res);
	            }       
	        });
		});

		$('#_cms_post_royalties').keyup(function () {

			this.value = this.value.replace(/[^0-9\.]/g, ''); // number only

			var str = $(this).val();
			str = str.replace(/\D+/g, '');
			$(this).val(str.replace(/\d(?=(?:\d{3})+(?!\d))/g, '$&,'));

		});
		$('#_cms_post_royalties').trigger('keyup');

		$('[data-toogle="posttype"]').click(function(){
			var id = $(this).data('id');
			$(".post_content .in.active").removeClass('in active').addClass('hidden');
			$("#"+id).removeClass('in active hidden').addClass('in active');
			slider.reloadSlider({
			    useCSS: false,
			    infiniteLoop: false,
	  			hideControlOnEnd: true
			}).reloadShow();
			//return true;
		});

		var slider = $('.bxslider').bxSlider({
    		useCSS: false,
		    infiniteLoop: false,
  			hideControlOnEnd: true
		});

		$("#import_audio").click(function(){
			var src = $("#import_audio_src").val();
			var caption = $("#import_audio_caption").val();
			var id = $("#import_audio_id").val();
			var rowid = '';
			if(id == '')
				rowid = guid();
			else 
				rowid = id;
			var html = "<tr id=\"import_audio_row_" + rowid + "\" data-id=\"" + rowid + "\">"
  				+ 	"<td>"
  				+	"<audio controls>"
				+		"<source src=\"" + src + "\" type=\"audio/mpeg\">"
				+		"<input type=\"hidden\" name=\"audio_src[]\" value=\"" + src + "\">"
				+	"Your browser does not support the audio element."
				+	"</audio>"
  				+	"</td>"
  				+	"<td>" + caption
				+		"<input type=\"hidden\" name=\"audio_caption[]\" value=\"" + caption + "\">"
  				+	"</td>"
  				+	"<td>"
  				+	"<button class=\"audio_edit\" type=\"button\"><i class=\"fa fa-pencil-square-o audio_edit\"></i></button>"
  				+	"<button class=\"audio_remove\" type=\"button\"><i class=\"fa fa-trash-o\"></i></button>"
				+	"</td>"
  				+	"</tr>";
  			if(id == '') {
  				$('#list_audio').append($(html));
  			} else {
  				$('#list_audio tr#import_audio_row_' + rowid).replaceWith($(html));
  			}
		});

		$(document).on('click', ".audio_remove", function(){
			$(this).closest("tr").remove();
		});

		$(document).on('click', ".audio_edit", function(){
			var $this = $(this).closest("tr");

			var src = $this.find("input[name='audio_src[]']").val();
			var caption = $this.find("input[name='audio_caption[]']").val();
			var id = $this.data('id');
			$("#import_audio_id").val(id);
			$("#import_audio_src").val(src);
			$("#import_audio_caption").val(caption);
		});

		$("#reset_audio").click(function(){
			$("#import_audio_id").val('');
			$("#import_audio_src").val('');
			$("#import_audio_caption").val('');
		});



		$("#import_video").click(function(){
			var src = $("#import_video_src").val();
			var caption = $("#import_video_caption").val();
			var id = $("#import_video_id").val();
			var rowid = '';
			if(id == '')
				rowid = guid();
			else 
				rowid = id;
			var html = '<li>'
				+ 	'<div class="slide">'
      			+		'<video width="350" height="240" controls="" preload="auto">'
				+	 		'<source src="' + src + '" type="video/mp4" />'
				+			'<input type="hidden" name="video_src[]" value="' + src + '">Your browser does not support the video tag.'
				+		'</video>'
				+		'<p></p>'
				+		'<button class="audio_edit" type="button"><i class="fa fa-pencil-square-o"></i></button>'
				+		'<button class="audio_remove" type="button"><i class="fa fa-trash-o"></i></button>'
				+		'<p></p>'
				+		'<div>'
				+		'<span>' + caption + '</span>'
				+		'<input type="hidden" name="video_caption[]" value="' + caption + '">'
				+		'</div>'
  				+	'</div>'
  				+	'</li>';
  			if(id == '') {
  				$('ul.bxslider').append($(html));
  			} else {
  				$('ul.bxslider li#import_video_row_' + rowid).replaceWith($(html));
  			}
  			slider.reloadSlider();
		});

		$(document).on('click', ".video_remove", function(){
			$(this).closest("li").remove();
		});

		$(document).on('click', ".video_edit", function(){
			var $this = $(this).closest("li");

			var src = $this.find("input[name='video_src[]']").val();
			var caption = $this.find("input[name='video_caption[]']").val();
			var id = $this.data('id');
			$("#import_video_id").val(id);
			$("#import_video_src").val(src);
			$("#import_video_caption").val(caption);
		});

		$("#reset_video").click(function(){
			$("#import_video_id").val('');
			$("#import_video_src").val('');
			$("#import_video_caption").val('');
		});
	});

</script>
<style type="text/css" media="screen">
	.post_type .btn { padding-right: 0; }
	.post_type .btn-label.btn-label-right { right: 0px; padding: 7px 12px; }
	.post-content-video-container {
		display: block; 
		clear: both;
	}
	.bxslider .slide div{
		display: block;
		clear: both;
  		overflow: hidden;
		position: relative;
  		background: #666\9;
  		background: rgba(80, 80, 80, 0.75);
  		width: 100%;
	}
	.bxslider .slide div span{
		display: block;
		clear: both;
  		overflow: hidden;
  		color: #fff;
		font-family: Arial;
		display: block;
		font-size: .85em;
		padding: 10px;
	}
</style>
